<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Nabu-asr: nabu.processing.processors.textfile_processor.TextFileProcessor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Nabu-asr
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacenabu.html">nabu</a></li><li class="navelem"><b>processing</b></li><li class="navelem"><b>processors</b></li><li class="navelem"><b>textfile_processor</b></li><li class="navelem"><a class="el" href="classnabu_1_1processing_1_1processors_1_1textfile__processor_1_1TextFileProcessor.html">TextFileProcessor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classnabu_1_1processing_1_1processors_1_1textfile__processor_1_1TextFileProcessor-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">nabu.processing.processors.textfile_processor.TextFileProcessor Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>a processor for text data where the datalines are pointers to text files, does normalization  
 <a href="classnabu_1_1processing_1_1processors_1_1textfile__processor_1_1TextFileProcessor.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for nabu.processing.processors.textfile_processor.TextFileProcessor:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classnabu_1_1processing_1_1processors_1_1textfile__processor_1_1TextFileProcessor.png" usemap="#nabu.processing.processors.textfile_5Fprocessor.TextFileProcessor_map" alt=""/>
  <map id="nabu.processing.processors.textfile_5Fprocessor.TextFileProcessor_map" name="nabu.processing.processors.textfile_processor.TextFileProcessor_map">
<area href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html" title="general Processor class for data processing " alt="nabu.processing.processors.processor.Processor" shape="rect" coords="0,56,383,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a713b4b90d18d8674419dae998aa979da"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1processors_1_1textfile__processor_1_1TextFileProcessor.html#a713b4b90d18d8674419dae998aa979da">__init__</a> (self, conf)</td></tr>
<tr class="memdesc:a713b4b90d18d8674419dae998aa979da"><td class="mdescLeft">&#160;</td><td class="mdescRight">TextProcessor constructor.  <a href="#a713b4b90d18d8674419dae998aa979da">More...</a><br /></td></tr>
<tr class="separator:a713b4b90d18d8674419dae998aa979da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dd41198738b4bacad45fec90e4d4d95"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1processors_1_1textfile__processor_1_1TextFileProcessor.html#a6dd41198738b4bacad45fec90e4d4d95">__call__</a> (self, dataline)</td></tr>
<tr class="memdesc:a6dd41198738b4bacad45fec90e4d4d95"><td class="mdescLeft">&#160;</td><td class="mdescRight">process the data in dataline  <a href="#a6dd41198738b4bacad45fec90e4d4d95">More...</a><br /></td></tr>
<tr class="separator:a6dd41198738b4bacad45fec90e4d4d95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb2ee914cec99838915d741d66607dc8"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1processors_1_1textfile__processor_1_1TextFileProcessor.html#afb2ee914cec99838915d741d66607dc8">write_metadata</a> (self, datadir)</td></tr>
<tr class="memdesc:afb2ee914cec99838915d741d66607dc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">write the processor metadata to disk  <a href="#afb2ee914cec99838915d741d66607dc8">More...</a><br /></td></tr>
<tr class="separator:afb2ee914cec99838915d741d66607dc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html">nabu.processing.processors.processor.Processor</a></td></tr>
<tr class="memitem:a68c94228dc1318d55607e894f824eac9 inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html#a68c94228dc1318d55607e894f824eac9">__init__</a> (self, conf)</td></tr>
<tr class="memdesc:a68c94228dc1318d55607e894f824eac9 inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html" title="general Processor class for data processing ">Processor</a> constructor.  <a href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html#a68c94228dc1318d55607e894f824eac9">More...</a><br /></td></tr>
<tr class="separator:a68c94228dc1318d55607e894f824eac9 inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab48837dfdb861724bcb9df874811107 inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html#aab48837dfdb861724bcb9df874811107">__call__</a> (self, dataline)</td></tr>
<tr class="memdesc:aab48837dfdb861724bcb9df874811107 inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="mdescLeft">&#160;</td><td class="mdescRight">process the data in dataline  <a href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html#aab48837dfdb861724bcb9df874811107">More...</a><br /></td></tr>
<tr class="separator:aab48837dfdb861724bcb9df874811107 inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c83c78a1cfa288c270b0ee87485306c inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html#a3c83c78a1cfa288c270b0ee87485306c">write_metadata</a> (self, datadir)</td></tr>
<tr class="memdesc:a3c83c78a1cfa288c270b0ee87485306c inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="mdescLeft">&#160;</td><td class="mdescRight">write the processor metadata to disk  <a href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html#a3c83c78a1cfa288c270b0ee87485306c">More...</a><br /></td></tr>
<tr class="separator:a3c83c78a1cfa288c270b0ee87485306c inherit pub_methods_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a35192fb267cfe085e18137fd7479aa6c"><td class="memItemLeft" align="right" valign="top"><a id="a35192fb267cfe085e18137fd7479aa6c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>normalizer</b></td></tr>
<tr class="separator:a35192fb267cfe085e18137fd7479aa6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebdc07bc5a859f333e08ad65787694e9"><td class="memItemLeft" align="right" valign="top"><a id="aebdc07bc5a859f333e08ad65787694e9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>alphabet</b></td></tr>
<tr class="separator:aebdc07bc5a859f333e08ad65787694e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a200bb8b3f293a537aa85d755ae60340e"><td class="memItemLeft" align="right" valign="top"><a id="a200bb8b3f293a537aa85d755ae60340e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>max_length</b></td></tr>
<tr class="separator:a200bb8b3f293a537aa85d755ae60340e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35583785bc7f6b51a805f8c8c59a66e8"><td class="memItemLeft" align="right" valign="top"><a id="a35583785bc7f6b51a805f8c8c59a66e8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>sequence_length_histogram</b></td></tr>
<tr class="separator:a35583785bc7f6b51a805f8c8c59a66e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0b0480a67a2cb79796936b0cab21e3d"><td class="memItemLeft" align="right" valign="top"><a id="af0b0480a67a2cb79796936b0cab21e3d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>nonesymbol</b></td></tr>
<tr class="separator:af0b0480a67a2cb79796936b0cab21e3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classnabu_1_1processing_1_1processors_1_1processor_1_1Processor.html">nabu.processing.processors.processor.Processor</a></td></tr>
<tr class="memitem:acd949c1b35fe043dbad45def4566792f inherit pub_attribs_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memItemLeft" align="right" valign="top"><a id="acd949c1b35fe043dbad45def4566792f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>conf</b></td></tr>
<tr class="separator:acd949c1b35fe043dbad45def4566792f inherit pub_attribs_classnabu_1_1processing_1_1processors_1_1processor_1_1Processor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>a processor for text data where the datalines are pointers to text files, does normalization </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a713b4b90d18d8674419dae998aa979da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a713b4b90d18d8674419dae998aa979da">&sect;&nbsp;</a></span>__init__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.processing.processors.textfile_processor.TextFileProcessor.__init__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>conf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>TextProcessor constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">conf</td><td>processor configuration as a configparser </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a6dd41198738b4bacad45fec90e4d4d95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dd41198738b4bacad45fec90e4d4d95">&sect;&nbsp;</a></span>__call__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.processing.processors.textfile_processor.TextFileProcessor.__call__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>dataline</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>process the data in dataline </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dataline</td><td>a line of text</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The normalized text as a string </dd></dl>

</div>
</div>
<a id="afb2ee914cec99838915d741d66607dc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb2ee914cec99838915d741d66607dc8">&sect;&nbsp;</a></span>write_metadata()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.processing.processors.textfile_processor.TextFileProcessor.write_metadata </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>datadir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>write the processor metadata to disk </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td>the directory where the metadata should be written </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="textfile__processor_8py.html">textfile_processor.py</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
